<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'rentcar.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body background="images/picture_3.png">
   <div class="officialcar">
      <center><h1>欢迎进入公务用车管理系统</h1>
      <p>申请表</p><br/> 
      <table width="200" border="1">
      <form method="post" action="RentcarServlet?mark=insert">
  <tr>
    <td>申请人</td>
    <td><input type="text" name="apply_name" value="<%=session.getAttribute("name")%>" placeholder="申请人名字"></td>
  </tr>
  <tr>
    <td>申请时间</td>
    <td><input type="text" name="openTime" value="2017-05-09" placeholder="申请时间"></td>
  </tr>
  <tr>
    <td>归还时间</td>
    <td><input type="text" name="returnTime" value="2017-06-09" placeholder="还车时间"></td>
  </tr>
  <tr>
    <td>原因</td>
    <td><input type="text" name="reason" value="公事" placeholder="公事"></td>
  </tr>
  <tr>
  <tr>
    <td>申请车辆</td>
    <td><select name="apply_car" ><option value="申请">申请车辆</option></select></td>
  </tr>
  <tr>
    <td>申请司机</td>
    <td><select name="apply_driver" ><option value="申请">申请司机</option></select></td>
  </tr>
  <tr>
    <td colspan="2"><center><input type="submit" name="insert" value="申请"></td>
  </tr>
       </form>         
      </table>
      <br><br> 
      <div>     
       <a href="users/main.jsp"><center><input name="commit" type="submit" id="back" value="返回"></p></a>
       </div>
      </div>
  </body>
</html>
